/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.cognition.util.marshal;

/**
 *
 * @author richard
 */
public class MarshalTypes {
    public static final String[] TYPE_NAMES = {
        "UNKNOWN",
        "BOOLEAN",  "BOOLEAN ARRAY",
        "SHORT",    "SHORT ARRAY",
        "CHAR",     "CHAR ARRAY",
        "BYTE",     "BYTE ARRAY",
        "INTEGER",  "INTEGER ARRAY",
        "LONG",     "LONG ARRAY",
        "FLOAT",    "FLOAT ARRAY",
        "DOUBLE",   "DOUBLE ARRAY",
        "STRING",   "STRING ARRAY"
    };

    public static final boolean[] TYPE_LENGTHS_REQUIRED = {
        true,
        false, true,
        false, true,
        false, true,
        false, true,
        false, true,
        false, true,
        false, true,
        false, true,
        true, true
    };
    

    public static final int TYPE_BOOLEAN        = 1;
    public static final int TYPE_BOOLEAN_ARRAY  = 2;

    public static final int TYPE_SHORT          = 3;
    public static final int TYPE_SHORT_ARRAY    = 4;

    public static final int TYPE_CHAR           = 5;
    public static final int TYPE_CHAR_ARRAY     = 6;

    public static final int TYPE_BYTE           = 7;
    public static final int TYPE_BYTE_ARRAY     = 8;

    public static final int TYPE_INT            = 9;
    public static final int TYPE_INT_ARRAY      = 10;

    public static final int TYPE_LONG           = 11;
    public static final int TYPE_LONG_ARRAY     = 12;

    public static final int TYPE_FLOAT          = 13;
    public static final int TYPE_FLOAT_ARRAY    = 14;

    public static final int TYPE_DOUBLE         = 15;
    public static final int TYPE_DOUBLE_ARRAY   = 16;

    public static final int TYPE_STRING         = 17;
    public static final int TYPE_STRING_ARRAY   = 18;

}
